package com.jackyzgy.test.io.objectStream;

public class Student extends seriClonable {

	private long id;
	private String name;
	private int age;
	private String school;
	
	public Student(long id,String name,int age,String school){
		this.id = id;
		this.name = name;
		this.age = age;
		this.school = school;
	}
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSchool() {
		return school;
	}
	public void setSchool(String school) {
		this.school = school;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}
	
	public void raiseAge(int addAge){
		this.age += addAge;
	}
	
	public String toString(){
		return getClass().getName()+":{"+this.id+","+this.name+","+this.age+","+this.school+"}";
	}
}
